package mk.gamemap.model.gameevent
{
	import flash.events.EventDispatcher;
	
	import mk.gamemap.model.GameVar;
	import game.tileMap.model.vo.MapObj;
	
	import mx.events.DynamicEvent;

	public class CharEvt extends GEvent
	{
		
		public function CharEvt(mapSp:MapObj)
		{
			super(mapSp)
			mapSp.picId="1"
		}
		
		
		
		override protected function updateList():void{
			if (progress==0){
				var dyEvent:DynamicEvent=new DynamicEvent(GEvent.EVENT_COMMAND);
				dyEvent.txt="h,speak ,speak\ntalk"
				dispatchEvent(dyEvent);
				progress++
				return;
				
			}else if (progress==1){
				var dyEvent:DynamicEvent=new DynamicEvent(GEvent.EVENT_COMMAND);
				dyEvent.txt="haha222,speak ,speak\ntalk" +
					"\ntalkssssss"
				dispatchEvent(dyEvent);
				progress++
			}
		}
	}
}